
import {
  HTTP
} from '../utils/http.js'

class likeModel extends HTTP {
  like(likeState, artID, category){
    let url = likeState?'like':'like/cancel'
    this.request({
      url: url,
      method: 'POST',
      data: {
        art_id: artID,
        type: category
      }
    })
  }
  getClassicLikeStatu(artID,category, resovle){
    this.request({
      url: 'classic/'+category+'/'+artID+'/favor',
      success: resovle
    })
  }
}

export {likeModel}
